﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="~/AltaYBusqueda.aspx.cs" Inherits="PresentacionWeb.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Reference Control ="~/ControlesDeUsuario/UCProducto.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <p>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </p>
    <div>
    
        <asp:UpdatePanel ID="UpdatePanelCrearProducto" runat="server">
            <ContentTemplate>
                <asp:Label ID="Label1" runat="server" Font-Bold="True" 
    Font-Size="Larger" Text="Agregar Nuevo Producto"></asp:Label>
                <br />
                ME LLEGO EL PRODUCTO DE ID =
                <asp:Label ID="lblIdeProducto" runat="server"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label2" runat="server" Text="Nombre"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label3" runat="server" Text="Categoria"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtCategoria" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label4" runat="server" Text="Descripcion"></asp:Label>
                &nbsp;&nbsp;
                <asp:TextBox ID="txtDescripcion" runat="server" 
    Height="39px" TextMode="MultiLine" Width="425px"></asp:TextBox>
                <br />
                <asp:Label ID="Label6" runat="server" Text="Fabricante"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtFabricante" runat="server"></asp:TextBox>
                <br />
                <asp:Label ID="Label5" runat="server" Text="Precio"></asp:Label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtPrecio" runat="server"></asp:TextBox>
                <br />
                <br />
                <asp:Button ID="btnCrearProducto" runat="server" 
    Text="Crear Producto" onclick="btnCrearProducto_Click" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnCrearProducto" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    
    </div>
    <p>
        &nbsp;</p>
    <asp:UpdatePanel ID="UpdatePanelBusquda" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label7" runat="server" 
    Text="Buscar Producto" Font-Bold="True" Font-Size="Larger"></asp:Label>
            <br />
            <br />
            <asp:Label ID="Label8" runat="server" Text="Nombre"></asp:Label>
            &nbsp;&nbsp;
            <asp:TextBox ID="txtBuscaNombre" runat="server" Height="22px" Width="234px"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label9" runat="server" Text="Descripcion"></asp:Label>
            <asp:TextBox ID="txtBuscaDescripcion" runat="server"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label12" runat="server" Text="Descripcion"></asp:Label>
            <asp:TextBox ID="txtBuscaCategoria" runat="server" style="height: 22px"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label10" runat="server" Text="Fabricante"></asp:Label>
            <asp:TextBox ID="txtBuscaFabricante" runat="server" Width="230px"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label11" runat="server" Text="Precio"></asp:Label>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" 
                Text="Buscar" />
            <br />
            <asp:ListView ID="ListView1" runat="server">
            </asp:ListView>
            <asp:DataList ID="DataList1" runat="server">
            </asp:DataList>
            <hr />
            <asp:Panel ID="Panel1" runat="server" Height="39px" Width="407px">
                <cc1:RoundedCornersExtender ID="Panel1_RoundedCornersExtender" runat="server" 
                    Radius="7" TargetControlID="Panel1">
                </cc1:RoundedCornersExtender>
            </asp:Panel>
            <br />
            <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
            <br />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnBuscar" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    </form>
</body>
</html>
